package Graph;

public class Rectangle extends Graphics{
    private double length;
    private double width;

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }
    public String toString(){
        return "长方形颜色为"+getColor()+"面积为"+length*width;
    }
}
